package com.Arr;

import java.util.Scanner;

/*
要写注释哦!!!
*/
public class Demo02 {
    public static void main(String[] args) {
        //定义动态数组
        int[] b = new int[6];
        Scanner sc = new Scanner(System.in);
        for (int i = 0; i < b.length; i++) {
            System.out.println("请输入第" + (i + 1) + "个数组：");
            int date = sc.nextInt();
            b[i] = date;
        }

        for (int i = 0; i < b.length; i++) {
            if (i % 2 == 0) {
                b[i]*=2;
            }
        }
        for (int i = 0; i < b.length; i++) {
            System.out.print(b[i] + "\t");
        }
    }
}
